package com.house.common.core.domain.entity;

import com.house.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 房屋信息对象 house
 *
 * @author tc
 * @date 2022-02-04
 */
public class House extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long houseId;

    /**
     * 房屋名称
     */
    private String houseName;

    /**
     * 占地面积
     */
    private Long houseArea;

    /**
     * 朝向(从数据字典获取)
     */
    private String houseTowards;

    /**
     * 装修 0:精装修  1:毛胚
     */
    private String houseFurnished;

    /**
     * 户型
     */
    private String houseType;

    /**
     * 楼层
     */
    private Long houseFloor;

    /**
     * 状态 0:启用  1:停用
     */
    private String status;

    /**
     * 是否在租 0:在租  1:闲置
     */
    private String isRental;

    /**
     * 是否发布 (0:待处理  1:已发布)
     */
    private String isHandle;

    /**
     * 价格/月
     */
    private BigDecimal rentalPrice;

    /**
     * 房源图片
     */
    private String houseImg;

    public String getHouseImg() {
        return houseImg;
    }

    public void setHouseImg(String houseImg) {
        this.houseImg = houseImg;
    }

    public String getIsHandle() {
        return isHandle;
    }

    public void setIsHandle(String isHandle) {
        this.isHandle = isHandle;
    }

    public BigDecimal getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(BigDecimal rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public String getIsRental() {
        return isRental;
    }

    public void setIsRental(String isRental) {
        this.isRental = isRental;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseArea(Long houseArea) {
        this.houseArea = houseArea;
    }

    public Long getHouseArea() {
        return houseArea;
    }

    public void setHouseTowards(String houseTowards) {
        this.houseTowards = houseTowards;
    }

    public String getHouseTowards() {
        return houseTowards;
    }

    public void setHouseFurnished(String houseFurnished) {
        this.houseFurnished = houseFurnished;
    }

    public String getHouseFurnished() {
        return houseFurnished;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseFloor(Long houseFloor) {
        this.houseFloor = houseFloor;
    }

    public Long getHouseFloor() {
        return houseFloor;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("houseId", getHouseId())
                .append("houseName", getHouseName())
                .append("houseArea", getHouseArea())
                .append("houseTowards", getHouseTowards())
                .append("houseFurnished", getHouseFurnished())
                .append("houseType", getHouseType())
                .append("houseFloor", getHouseFloor())
                .append("rentalPrice", rentalPrice)
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
